package core;

public class Action {
	public enum Type {
		NOOP, DO, NORTH, SOUTH, EAST, WEST
	}

	Action.Type type;

	public Action(Action.Type type, int sx, int sy) {
		super();
		this.type = type;
	}

	static public int xVar(Action.Type actionType) {
		switch (actionType) {
		case NORTH:
			return -1;
		case SOUTH:
			return 1;
		}
		return 0;
	}

	static public int yVar(Action.Type actionType) {
		switch (actionType) {
		case EAST:
			return 1;
		case WEST:
			return -1;
		}
		return 0;
	}
}